{extend name="index/index" /}

{block name="main"}

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        RBAC 列表
    </div>
    <ol class="am-breadcrumb">
        <li><a href="{:url('admin/index/index')}" class="am-icon-home">首页</a></li>
        <li class="am-active">用户列表</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title"></div>
        <div class="tpl-block">
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-3"></div>
            </div>
            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-striped am-table-hover table-main">
                            <thead>
                                <tr>
                                    <th class="table-id">ID</th>
                                    <th class="table-title">账号</th>
                                    <th class="table-type">名称</th>
                                    <th class="table-set">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="user" id="user"}
                                <tr>
                                    <td style="width: 400px;">{$user.id}</td>
                                    <td style="width: 420px;"><a href="#">{$user.name}</a></td>
                                    <td style="width: 420px;" class="am-hide-sm-only">{$user.nick}</td>
                                    <td>
                                        {if $user.name == 'admin'}
                                        {else /}
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <a href="{:url('admin/user/edit',['id'=>$user['id']])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">
                                                    <span class="am-icon-pencil-square-o"></span> 编辑
                                                </a>
                                                <a href="{:url('admin/user/sf',['id'=>$user['id']])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">
                                                    <span class="am-icon-pencil-square-o"></span> 分配职位
                                                </a>
                                            </div>
                                        </div>
                                        {/if}
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                        <hr>
                    </form>
                </div>
            </div>
        </div>
        <div class="tpl-alert"></div>
    </div>
</div>

    <script src="/static/admin/js/jquery.min.js"></script>
    <script src="/static/admin/js/toastr.min.js"></script>

{/block}


